<!-- API服务 - 综合表单页面 -->
<template>
  <div class="page-container">
    <page_breadcrumb :getKeyMethod="init_table_model" @change="change_table_model" pageOption />
    <ex_super_table_page v-bind="option" ref="SuperTablePage">

      <template v-slot:ossUrl="{ row }">

        <el-link type="primary" :href="$ex_default_download_url + row.ossUrl" target="_blank">{{ $tt('label_srm_api_order_waybill_link') }}</el-link>
      </template>
    </ex_super_table_page>

  </div>
</template>
<script>


import superTablePageFunction from '@/mixin/super-table-page-function';
import page_table_model_manage from '@/mixin/page_table_model_manage';

export default {
  title: 'label_srm_api_order_api_waybill_record',
  components: {},
  mixins: [superTablePageFunction, page_table_model_manage],
  data() {
    return {

      option: {
        //搜索框内容
        search: {
          //搜索框内容，key为搜索字段，label为标签提示
          model: [
            { label: "label_srm_api_order_no", key: "orderNo", },

            // { label: "label_service_type", key: "apiServiceType", type: 'select', enum: 'ApiServiceTypeEnum' },
            { label: "label_srm_api_order_buss_type", key: "type", type: 'select', enum: 'ApiCaiNiaoOrderTypeEnum', },
          ],
        },
        action: [

        ],

        table: {
          url: "/srm-api/supplier/ApiServiceLabelLogRpc/selectList.json",
          model: this.init_table_model(),

        }
        ,

      },


    }
  },



  methods: {
    option_table_model() {
      return [
        { key: 'orderNo', label: 'label_srm_api_order_no', 'min-width': 200, 'show-overflow-tooltip': true, },
        { key: 'platformOrderId', label: 'label_srm_api_order_order_id', 'min-width': 200, 'show-overflow-tooltip': true, },
        { key: 'platformOrderCode', label: 'label_srm_api_order_order_code', 'min-width': 200, 'show-overflow-tooltip': true, },
        { key: 'type', label: 'label_srm_api_order_type', 'min-width': 200, 'show-overflow-tooltip': true, formatter: (r, c, v, i) => this.$enumShow(v, "ApiCaiNiaoOrderTypeEnum") },
        {
          key: 'ossUrl', label: 'label_srm_api_order_oss_path', 'min-width': 200, 'show-overflow-tooltip': true, slot: 'ossUrl',
          // formatter: (r, c, v) => this.$ex_default_download_url + v
        },

      ]
    }
  }
};

</script>
<style></style>
